<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
    <title>文件上传</title>
    <style>
    	a{ 
    		text-decoration:none;
    		margin-left:0px;
    	}
    	p{
    		margin-left:230px;
    	}
	</style>
</head>
<body style="text-align:center;">
<h2>请先上传文件</h2>
<br>
<form method="post" th:action="@{/uploadAdd}" enctype="multipart/form-data">
    选择一个文件:
    <input style="border:1px solid gray" type="file" name="file" />
    <br/><br/>
    <input style="margin-left:288px" type="submit" value="上传" />
    <br><br>
    <p>如不上传请<a th:href="@{/toAdd}">跳过</a></p>
</form>

</body>
</html>